package com.ruoyi.electrical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electrical.mapper.ElectricalDailyInspectionMapper;
import com.ruoyi.electrical.domain.ElectricalDailyInspection;
import com.ruoyi.electrical.service.IElectricalDailyInspectionService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-09
 */
@Service
public class ElectricalDailyInspectionServiceImpl implements IElectricalDailyInspectionService 
{
    @Autowired
    private ElectricalDailyInspectionMapper electricalDailyInspectionMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param dailyInspectionId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ElectricalDailyInspection selectElectricalDailyInspectionByDailyInspectionId(Long dailyInspectionId)
    {
        return electricalDailyInspectionMapper.selectElectricalDailyInspectionByDailyInspectionId(dailyInspectionId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param electricalDailyInspection 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ElectricalDailyInspection> selectElectricalDailyInspectionList(ElectricalDailyInspection electricalDailyInspection)
    {
        return electricalDailyInspectionMapper.selectElectricalDailyInspectionList(electricalDailyInspection);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param electricalDailyInspection 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertElectricalDailyInspection(ElectricalDailyInspection electricalDailyInspection)
    {
        return electricalDailyInspectionMapper.insertElectricalDailyInspection(electricalDailyInspection);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param electricalDailyInspection 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateElectricalDailyInspection(ElectricalDailyInspection electricalDailyInspection)
    {
        return electricalDailyInspectionMapper.updateElectricalDailyInspection(electricalDailyInspection);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param dailyInspectionIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalDailyInspectionByDailyInspectionIds(Long[] dailyInspectionIds)
    {
        return electricalDailyInspectionMapper.deleteElectricalDailyInspectionByDailyInspectionIds(dailyInspectionIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param dailyInspectionId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalDailyInspectionByDailyInspectionId(Long dailyInspectionId)
    {
        return electricalDailyInspectionMapper.deleteElectricalDailyInspectionByDailyInspectionId(dailyInspectionId);
    }
}
